package com.aliang.shopping.esDao;

import com.aliang.shopping.model.dto.goods.GoodsEsDto;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface GoodsEsRepository extends ElasticsearchRepository<GoodsEsDto, Long> {
    /**
     * 根据商品名模糊查询
     *
     * @param goodsName
     * @return
     */
    List<GoodsEsDto> findByGoodsNameLike(String goodsName);
}
